package com.amlyc.ava并发编程实践.ch03;

public class test {
    private String[] states = {"AK", "AL", "AC"};
    private static final test t = new test();
    public String[] getString(){
        return states;
    }

    public static void main(String[] args) {

        test test = new test();
        String[] string = test.getString();
        for (String s : string) {
            System.out.println(s);
        }
        string[1] = "asdf";
        for (String s : string) {
            System.out.println(s);
        }
        for (String state : test.states) {
            System.out.println(state);
        }
    }
}
